package com.salts.Dao;

import com.salts.domain.po.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Mapper
@Repository//交由Spring容器管理
public interface OrderDetailMapper {
    List<Integer> getTop5ProductIds();

    List<OrderDetail> getOrderDetailInfo(List<Integer> orderId);

    int insertAllOrderDetail(List<OrderDetail> orderDetails);

    List<OrderDetail> queryListByMap(HashMap<String, Object> queryMap);

    List<OrderDetail> getUserOrderDetailInfo(Integer userId);
}
